﻿package ygg.encoding.amf
{
	public class AmfHeader
	{
		private var _numBytes:uint;
		private var _version:uint;
		private var _name:String;
		
		public function AmfHeader( name:String, version:uint, numBytes:uint)
		{
			_numBytes = numBytes;
			_name = name;
			_version = version;
		}
		public function toString():String
		{
			return 'AmfHeader:\n' + ' ' + _numBytes + ' '  + ' ' + _version + ' ' + _name;
		}
		
		
		public function get name():String { return _name; }
		
		public function set name(value:String):void
		{
			_name = value;
		}
		
		public function get numBytes():uint { return _numBytes; }
		
		public function set numBytes(value:uint):void
		{
			_numBytes = value;
		}
		
		public function get version():uint { return _version; }
		
		public function set version(value:uint):void
		{
			_version = value;
		}
		
	}
	
}